package compile.library {
	import flash.display.DisplayObject;
	import flash.display.Sprite;	

	public class Library extends Sprite implements ILibrary{
		[Embed(source="../../../resrc/turkish_sweater.jpg")]
		private static const logo:Class;
	
		public function getAssetByName(name:String) : DisplayObject{
			try{
				var clazz:Class = Library[name];
				return new clazz();
			}catch(err:Error){ ; }
			return null;
		}
	}
}
